
#ifndef 	__PRINTF_H__
#define		__PRINTF_H__

#define APP   	MempTestApp	

#define STR1(R)  #R  
#define STR2(R)  STR1(R) 


#define  LOG	ALL

#define  ALL  	 	0b1111
#define	 LOG_INFO	0b0001
#define  LOG_DEBUG	0b0010
#define	 LOG_ERRO	0b0100

#if (LOG & LOG_INFO)
	#define user_info(format,...)printf("[%s info: ] " format "\n",STR2(APP),##__VA_ARGS__ )
#else
	#define user_info(format,...)
#endif
	
#if (LOG & LOG_DEBUG)
	#define user_debug(format,...)printf("[%s debug:] "format "\n",STR2(APP),##__VA_ARGS__)
#else
	#define user_debug(format,...)
#endif
	
#if (LOG & LOG_ERRO)
	#define user_error(format,...)printf("[%s error:] "format "\n",STR2(APP),##__VA_ARGS__)
#else
	#define user_error(format,...)
#endif

#endif

